package lanqiao.dontaiguihua.meiju;

public class Lan4128 {
    static int count=0;
    public static void main(String[] args) {
                dfs(1,9,16);
                System.out.println(count);
    }

    private static void dfs(int x,int a,int b){
        if(x==8){
            if(a==0&&b==0){
                count++;
            }
            return;
        }


        for(int i=1;i<a;i++){
            for(int j=1;j<=b;j++){
                if(i+j>=2&&i+j<=5){
                    dfs(x+1,a-i,b-j);
                }
            }
        }
    }

}
